package com.fahai.web.dao;

import com.fahai.common.CommonMapper;

import com.fahai.web.entity.LawyerTx;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;

@Repository
public interface LawyerTxDao extends CommonMapper<LawyerTx> {

    public List<HashMap<String,Object>> selectList(@Param(value = "lawyername")String lawyername, @Param(value = "lawyerPhone")String lawyerPhone, @Param(value = "beginTime")String beginTime,  @Param(value = "endTime")String endTime,  @Param(value = "txStats")Integer txStats,@Param(value = "orderBy")Integer orderBy);

    public Integer selectListCount(@Param(value = "lawyername")String lawyername, @Param(value = "lawyerPhone")String lawyerPhone, @Param(value = "beginTime")String beginTime,  @Param(value = "endTime")String endTime,  @Param(value = "txStats")Integer txStats);

    public void updateHandleLawyerTx(@Param(value = "txId")Integer txId,@Param(value = "returnNum")String returnNum,@Param(value = "remak")String remak);

    public HashMap<String,Object> selectOneData(Integer txId);
}